package com.linkai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yamon
 * @since 2021-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Inputorder对象", description="")
public class Inputorder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "单据编号")
    private String inputOrderNumber;

    @ApiModelProperty(value = "供货单位，外键")
    private Integer supId;

    @ApiModelProperty(value = "外键，经手人")
    private Integer empId;

    @ApiModelProperty(value = "收货仓库")
    private Integer bstoId;

    @ApiModelProperty(value = "支付账户，外键")
    private Integer accId;

    @ApiModelProperty(value = "进货金额")
    private BigDecimal price;

    @ApiModelProperty(value = "商品个数")
    private Integer productNumber;

    @ApiModelProperty(value = "进货的日期")
    private Date inpDate;

    @ApiModelProperty(value = "备注")
    private String back;

    @ApiModelProperty(value = "付款账户或者方式")
    private String payer;

      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "是否入库")
    private Integer inpState;


}
